<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path=request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"></base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分类管理</title>
<link rel="stylesheet" href="js/plugins/jquery-ui/themes/redmond/jquery-ui.min.css" />
<link rel="stylesheet" href="js/plugins/jqGrid/css/ui.jqgrid.css" />
<link rel="stylesheet" href="css/layout.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/plugins/jqGrid/js/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="js/plugins/jqGrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery-ui/ui/jquery-ui.js"></script>
<script type="text/javascript" src="js/plugins/noty/jquery.noty.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/topRight.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/top.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/center.js"></script>
<script type="text/javascript" src="js/plugins/noty/themes/default.js"></script>

<script type="text/javascript" src="js/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/system/category.js"></script>
<script>
    $(function() {
        setupLevel();

        setupMenu();

        setupContent();

        setupCategoryGrid();

        setupCategoryToolbar();

        setupCategoryDialog();
    });
</script>
<style>
select {
    width : 150px;
}
#cond {
    margin-bottom:10px;
}
</style>
</head>
<body>
 <div id="container">
  <%@ include file="../header.jsp" %>
  <div id="mainContent">
   <div id="tabs">
    <ul>
     <li><a href="#tab">分类管理</a></li>
    </ul>
    <div id="cond">
     <select id="level1" class="text ui-widget-content ui-corner-all">
     </select>
     <select id="level2" class="text ui-widget-content ui-corner-all">
     </select>
     <button id="showInfo">分类信息显示</button>
    </div>
    <div id="tab">
     <div id="toolbar">
      <button id="add">分类信息录入</button>
      <button id="edit">分类信息编辑</button>
      <button id="delete">分类信息删除</button>
     </div>
     <table id="categorys"></table>
     <div id="pager"></div>
    </div>
   </div>
   <div id="detail" title="分类信息录入">
    <s:form name="userForm" method="post">
     <input type="hidden" name="data.id" id="id" />
     <input type="hidden" name="data.parent" id="parentId" />
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td>分类名</td>
       <td><input type="text" name="data.name" id="name" maxlength="16" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td>备注</td>
       <td><input type="text" name="data.remark" id="remark" maxlength="128" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
     </table>
    </s:form>
   </div>
  </div>
 </div>
</body>
</html>